package com.naiterui.ehp.bs.pc.modules.sys.feign;

import com.naiterui.ehp.bp.bo.doctor.PcUserBO;
import com.naiterui.ehp.bp.support.config.FeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author guoyongxiang
 * @date 2019/12/3 17:28
 * @since 1.0.0
 */
@RequestMapping("inner")
@FeignClient(name = "doctor", url = "${ehp.domain.ad}", configuration = FeignConfiguration.class)
public interface IDoctorFeignClient {

    @GetMapping("userinfo/doctor")
    PcUserBO getUserInfo(@RequestParam("phone") String phone);

    @GetMapping("userinfo/doctor/face")
    PcUserBO getUserFaceInfo(@RequestParam("phone") String phone,
                             @RequestParam("h5SuccessUrl") String h5SuccessUrl,
                             @RequestParam("h5FailUrl") String h5FailUrl);
}
